package com.yc.zyz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ly
 * @since 2024-07-28
 */
@Getter
@Setter
@TableName("task")
public class Task implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("addr")
    private String addr;

    @TableField("begin")
    private LocalDateTime begin;

    @TableField("end")
    private LocalDateTime end;

    @TableField("nums")
    private Integer nums;

    @TableField("image")
    private String image;

    @TableField("tdesc")
    private String tdesc;

    @TableField("state")
    private String state;

    @TableField("create_time")
    private LocalDateTime createTime;

    private Integer uid;

    // 非数据库字段
    @TableField(exist = false)
    private User user;  // 发起人
    @TableField(exist = false)
    private List<User> joins;  // 参与人





}
